//
//  PayTicketHeaderTableCell.m
//  didacar
//
//  Created by 度周末网络-王腾 on 15/12/23.
//  Copyright © 2015年 dzmmac. All rights reserved.
//

#import "PayTicketHeaderTableCell.h"

@implementation PayTicketHeaderTableCell

- (void)awakeFromNib {
    self.status.layer.cornerRadius = 2;
    self.status.layer.masksToBounds=YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}


-(void)setCellPayTicketStyle:(PayTicketStyle)payTicketStyle{
    switch (payTicketStyle) {
        case PayTicket_ThroughBus:
        {
            self.price.hidden = NO;
            self.status.hidden = NO;
            self.status.text = @"苏E-12345";
            self.price.attributedText = [self getPrice:@"50" leftText:@"有票  " leftSymbol:@"¥"];
            
        }
            break;
            
        default:
        {
            self.price.hidden  = YES;
            self.status.hidden = YES;
        }
            break;
    }
}

@end
